home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 April / macformat-023.iso / Shareware City / Control Strip / Module Tester folder / READ ME FIRST < prev   
Encoding:
Text File  |  1994-11-05  |  4.5 KB  |  82 lines  |  [ttro/ttxt]

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10. Thanks for your interst in my Control Strip module tester.  Please read this document in its entirety before trying out the tester.
  11. ————————————————————————————————————————————————————————————
  12.  
  13.                 This is version 1.0.  Welcome virgin users!
  14.  
  15. A quick note:  For known reasons it does not work with about 1/4 of the modules that are on the various Mac ftp sites.  These are modules which try to rely on string constants or other A4-relative data without having first properly set up their A4 world.
  16.  
  17. If you're writing modules in 68K code and you use string constants or other global data make sure your properly initialize your A4-world!
  18.  
  19. Nuff said.  On to the good stuff!
  20.  
  21. Use is pretty simple.  Use the standard open/close interface in the File menu to load a module and then just treat it like it was really in the Control Strip.
  22.  
  23. ————————————————————————————————————————————————————————————
  24. WHAT THE TESTER DOES FOR YOU
  25. ————————————————————————————————————————————————————————————
  26.  
  27. Your module can allocate memory and load any necessary resources during its init phase and return a handle which will be returned to you in the param field each time your SDEV is called.  If you return a number less than zero it will signal that you could not initialize and the tester will not load the SDEV.
  28.  
  29. It will provide your module with a tickle heartbeat for periodic processing.
  30.  
  31. It will send your module a request to return feature bits.  If your feature bits include sdevWantMouseClicks then it will pass mouse-downs to your module.
  32.  
  33. It will ask your module how wide it is and will place it in a window appropriate for that width.
  34.  
  35. It will ask your module to draw itself after initializing and whenever an update event happens in the tester's window.
  36.  
  37. A menu is provided that lets you select a signal to send to the module.  An alert window will pop-up afterwards to tell you what the return value was.
  38.  
  39. ————————————————————————————————————————————————————————————
  40. A NOTE ON MOUSE MENUS/SLIDERS/GRAPHS/BALLOONS, ETC
  41. ————————————————————————————————————————————————————————————
  42.  
  43. Since the traps called by a CS module to display a menu/balloons/sliders/etc. were written with the Control Strip in mind and not my tester, some of these items will be positioned above the real Control Strip.  This can be a little scary the first time it happens.  I placed a head-patch in front of the Control Strip trap and handle menu and Balloon Help requests myself.  However, sliders and graphs may appear in strange places.
  44.  
  45. ————————————————————————————————————————————————————————————
  46. OTHER STUFF THAT'S AVAILABLE
  47. ————————————————————————————————————————————————————————————
  48.  
  49. If you would like a copy of the ControlStrip.h file that I use let me know and I'll mail it off.  I also have a "shell" that I use for my own module development.  It implements icon drawing and allocation/use of a global variable block.  I have also done a module that uses the CD-ROM driver to select and play tracks from a mounted audio CD.  Nothing radical in the module code but the CD-driver code has some good tidbits.
  50.  
  51. All code is in C for CodeWarrior 4.5.
  52.  
  53. ————————————————————————————————————————————————————————————
  54. BUG REPORTS/FEATURE REQUESTS
  55. ————————————————————————————————————————————————————————————
  56.  
  57. I think that's about it.  If you have any comments, bugs, questions, feel free to mail me with your concerns.  One thing that has already been requested is to provide a timer to see how much extra time the module is using for its tickle processing.  This may appear in a future revision.
  58.  
  59. L8R,
  60. Chris
  61.  
  62. phixus@netcom.com
  63.  
  64. ————————————————————————————————————————————————————————————
  65. REVISION HISTORY:
  66. ————————————————————————————————————————————————————————————
  67.  
  68. 11/05/94 -    Implemented servicing of Balloon Help.  Code is now at v1.0.  This is the first public distribution.
  69.  
  70. 11/04/94 -    Fixed popup-menus so they are in Geneva-9-plain the way they should be!
  71.  
  72. 11/03/94 -    Added my own patch for the Control Strip trap.  Now pop-up menus are properly placed over the
  73.                                                 tester window rather than over the Control Strip.  For now the REAL Control Strip is hidden
  74.                                                 while the tester is running until I work out some font problems.  Balloon Help support is next!
  75.  
  76. 10/27/94 -    Made sure that the proper rectangle was passed to the module each time.  It seems that some
  77.                                                 modules actually modify the rectangle that is passed in (rude).
  78.  
  79. 10/27/94 -    Changed calls so that when you select a module from the menubar an alert pops up telling you the
  80.                                                 result code in both decimal and hex.
  81.  
  82. 10/25/94 -    Initial version mailed out.